Optimal. Leaf size=50 \[ -\frac {2 (c+d x) \tanh ^{-1}\left (e^{a+b x}\right )}{b}-\frac {d \text {PolyLog}\left (2,-e^{a+b x}\right )}{b^2}+\frac {d \text {PolyLog}\left (2,e^{a+b x}\right )}{b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {4267, 2317,
2438} \begin {gather*} -\frac {d \text {Li}_2\left (-e^{a+b x}\right )}{b^2}+\frac {d \text {Li}_2\left (e^{a+b x}\right )}{b^2}-\frac {2 (c+d x) \tanh ^{-1}\left (e^{a+b x}\right )}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2317
Rule 2438
Rule 4267
Rubi steps
\begin {align*} \int (c+d x) \text {csch}(a+b x) \, dx &=-\frac {2 (c+d x) \tanh ^{-1}\left (e^{a+b x}\right )}{b}-\frac {d \int \log \left (1-e^{a+b x}\right ) \, dx}{b}+\frac {d \int \log \left (1+e^{a+b x}\right ) \, dx}{b}\\ &=-\frac {2 (c+d x) \tanh ^{-1}\left (e^{a+b x}\right )}{b}-\frac {d \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{a+b x}\right )}{b^2}+\frac {d \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{a+b x}\right )}{b^2}\\ &=-\frac {2 (c+d x) \tanh ^{-1}\left (e^{a+b x}\right )}{b}-\frac {d \text {Li}_2\left (-e^{a+b x}\right )}{b^2}+\frac {d \text {Li}_2\left (e^{a+b x}\right )}{b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.06, size = 174, normalized size = 3.48 \begin {gather*} -\frac {c \log \left (\cosh \left (\frac {a}{2}+\frac {b x}{2}\right )\right )}{b}+\frac {c \log \left (\sinh \left (\frac {a}{2}+\frac {b x}{2}\right )\right )}{b}+\frac {d \left (-a \log \left (\tanh \left (\frac {1}{2} (a+b x)\right )\right )-i \left ((i a+i b x) \left (\log \left (1-e^{i (i a+i b x)}\right )-\log \left (1+e^{i (i a+i b x)}\right )\right )+i \left (\text {PolyLog}\left (2,-e^{i (i a+i b x)}\right )-\text {PolyLog}\left (2,e^{i (i a+i b x)}\right )\right )\right )\right )}{b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.51, size = 60, normalized size = 1.20
method | result | size |
derivativedivides | \(\frac {\frac {d \left (2 \dilog \left ({\mathrm e}^{-b x -a}\right )-\frac {\dilog \left ({\mathrm e}^{-2 b x -2 a}\right )}{2}\right )}{b}+\frac {2 d a \arctanh \left ({\mathrm e}^{b x +a}\right )}{b}-2 c \arctanh \left ({\mathrm e}^{b x +a}\right )}{b}\) | \(60\) |
default | \(\frac {\frac {d \left (2 \dilog \left ({\mathrm e}^{-b x -a}\right )-\frac {\dilog \left ({\mathrm e}^{-2 b x -2 a}\right )}{2}\right )}{b}+\frac {2 d a \arctanh \left ({\mathrm e}^{b x +a}\right )}{b}-2 c \arctanh \left ({\mathrm e}^{b x +a}\right )}{b}\) | \(60\) |
risch | \(-\frac {2 c \arctanh \left ({\mathrm e}^{b x +a}\right )}{b}+\frac {d \ln \left (1-{\mathrm e}^{b x +a}\right ) x}{b}+\frac {d \ln \left (1-{\mathrm e}^{b x +a}\right ) a}{b^{2}}+\frac {d \polylog \left (2, {\mathrm e}^{b x +a}\right )}{b^{2}}-\frac {d \ln \left ({\mathrm e}^{b x +a}+1\right ) x}{b}-\frac {d \ln \left ({\mathrm e}^{b x +a}+1\right ) a}{b^{2}}-\frac {d \polylog \left (2, -{\mathrm e}^{b x +a}\right )}{b^{2}}+\frac {2 d a \arctanh \left ({\mathrm e}^{b x +a}\right )}{b^{2}}\) | \(124\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 119 vs.
\(2 (45) = 90\).
time = 0.34, size = 119, normalized size = 2.38 \begin {gather*} \frac {d {\rm Li}_2\left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )\right ) - d {\rm Li}_2\left (-\cosh \left (b x + a\right ) - \sinh \left (b x + a\right )\right ) - {\left (b d x + b c\right )} \log \left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right ) + 1\right ) + {\left (b c - a d\right )} \log \left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right ) - 1\right ) + {\left (b d x + a d\right )} \log \left (-\cosh \left (b x + a\right ) - \sinh \left (b x + a\right ) + 1\right )}{b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (c + d x\right ) \operatorname {csch}{\left (a + b x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {c+d\,x}{\mathrm {sinh}\left (a+b\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________